<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-drivers-edit" th:object="${veDrivers}">
            <input name="DriverID" th:field="*{DriverID}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">驾驶员姓名：</label>
                <div class="col-sm-8">
                    <input name="DriverName" th:field="*{DriverName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">驾驶证号码：</label>
                <div class="col-sm-8">
                    <input name="DriverLicense" th:field="*{DriverLicense}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">驾龄：</label>
                <div class="col-sm-8">
                    <input name="ExperienceYears" th:field="*{ExperienceYears}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">联系方式：</label>
                <div class="col-sm-8">
                    <input name="ContactInfo" th:field="*{ContactInfo}" class="form-control" type="text">
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-3 control-label">流程id：</label>
                <div class="col-sm-8">
                    <input name="flowInstantId" th:field="*{flowInstantId}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">图片：</label>
                <div class="col-sm-8">
                    <input name="picture" th:field="*{picture}" class="form-control" type="text">
                </div>
            </div>



            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="Comments" class="form-control">[[*{Comments}]]</textarea>
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-3 control-label">是否同意：</label>
                <div class="col-sm-6">
                    <div class="radio-box" th:each="dict : ${@dict.getType('sys_user_agree')}">
                        <input type="radio" th:id="${dict.dictCode}" name="agree" th:value="${dict.dictValue}" th:checked="${dict.default}">
                        <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>



            <div class="form-group">
                <label class="col-sm-3 control-label">批注：</label>
                <div class="col-sm-6">
                    <textarea type="text" name="comment" class="form-control" placeholder="请输入批注内容" th:field="*{comment}"></textarea>
                </div>
            </div>



            <div class="tab-content">

                <div class="tab-pane active" id="tab1">
                    <!-- 在这里添加基本信息的内容 -->
                    <table class="table table-bordered">
                        <thead>
                        <tr>
                            <th>编号</th>
                            <th>任务的办理人</th>
                            <th>任务的名称</th>
                            <th>任务的节点</th>
                            <th>批注</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="taskComment,var : ${taskCommentVoList}">
                            <td th:text="${var.count}"></td>
                            <td th:text="${taskComment.userName}"></td>
                            <td th:text="${taskComment.taskName}"></td>
                            <td th:text="${taskComment.taskKeyId}"></td>
                            <td th:text="${taskComment.message}"></td>
                        </tr>

                        <!-- 添加更多行数据或使用循环来生成行数据 -->
                        </tbody>
                    </table>
                </div>

                <!-- <div class="tab-pane" id="tab2">

                     <table class="table table-bordered">
                         <thead>
                         <tr>
                             <th>列1</th>
                             <th>列2</th>
                             <th>列3</th>
                         </tr>
                         </thead>
                         <tbody>
                         <tr>
                             <td>数据1</td>
                             <td>数据2</td>
                             <td>数据3</td>
                         </tr>
                         <tr>
                             <td>数据1</td>
                             <td>数据2</td>
                             <td>数据3</td>
                         </tr>
                         </tbody>
                     </table>
                 </div>-->
            </div>


        </form>
    </div>






    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/leaverequest";
        $("#form-drivers-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/editnoauthdata", $('#form-drivers-edit').serialize());
            }
        }
    </script>
</body>
</html>